package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.swing.JOptionPane;

import view.AapView;
import model.Aap;
import datalayer.AapDatalayer;

public class AapController implements ActionListener{

	@Override
	public void actionPerformed(ActionEvent e) {
		if("Bevallen".equals(e.getActionCommand())){
			AapDatalayer adl = new AapDatalayer();
			Aap aap = new Aap();
			
			try {
				adl.bevallen();
			} catch (SQLException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
			
		}
		
		
		
	}

}
